﻿// Copyright © 2010 Silvestru Iapascurta.
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see license.txt for details.
// All other rights reserved.

using System;
using System.Collections.Generic;
using System.Text;

using FeedDotNet;
using FeedDotNet.Common;

namespace Karoro
{
    public class FeedEventArgs : EventArgs
    {
        private List<string> _links = new List<string>();
        private Feed _feed;

        public FeedEventArgs(Feed feed)
        {
            _feed = feed;
        }

        public FeedEventArgs(string link)
        {
            _links.Add(link);
        }

        public FeedEventArgs(List<string> links)
        {
            _links = links;
        }

        public List<string> Links
        {
            get { return _links; }
        }

        public Feed Feed
        {
            get { return _feed; }
        }

    }

    public delegate void Subscription(object sender, FeedEventArgs e);
}
